<template>
  <div class="echarts-card">
    <div class="header">
      <span style="margin-left: 10px">{{ title }}</span>
    </div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue'
// const props = defineProps({
//   title: {
//     type: String,
//     required: true
//   }
// })
const props = defineProps<{
  title: string
}>()
</script>

<style scoped lang="less">
.echarts-card {
  border: 1px solid rgba(139, 139, 139, 0.5);
  border-radius: 3px;
  background-color: #ffffff;
  .header {
    border-bottom: 1px solid rgba(187, 187, 187, 0.5);
    text-align: left;
    padding: 5px 0;
  }
}
</style>
